package com.api.shopapi.service.impl;


import com.api.shopapi.entity.OrderServe;
import com.api.shopapi.mapper.OrderServeMapper;
import com.api.shopapi.service.OrderServeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderServeServiceImplOne")
public class OrderServeServiceImpl implements OrderServeService {

    @Autowired
    private OrderServeMapper orderServeMapper;

    @Override
    public int insert(OrderServe orderService) {
        return orderServeMapper.insert(orderService);
    }

    @Override
    public int delete(String orderServiceCode) {
        return orderServeMapper.delete(orderServiceCode);
    }

    @Override
    public int update(OrderServe orderService) {
        return orderServeMapper.update(orderService);
    }

    @Override
    public List<OrderServe> getList() {
        return orderServeMapper.getList();
    }

    @Override
    public OrderServe getByOrderServeCode(String orderServeCode) {
        return orderServeMapper.getByOrderServeCode(orderServeCode);
    }

    @Override
    public OrderServe getByOrderBusinessCode(String orderBusinessCode){
        return orderServeMapper.getByOrderBusinessCode(orderBusinessCode);
    }
    
}
